import { service, request } from "./request.js";

const generalRequestPost = (url, data) => {
    return service({
        url: url,
        method: 'post',
        data,
    });
};
const generalRequestGet = (url, params) => {
    return service({
        url: url,
        method: 'get',
        params
    });
};

const getoptions = (data) => {
    return service({
        url: 'zjpsSystemDictonaryEnum/getDictoryByDicType',
        method: 'post',
        data,
    });
}
const shengCode = (data) => {
    return service({
      url: "/baseAreaInfo/getParent",
      method: "post",
      data,
    });
  };

export {
    generalRequestPost,
    generalRequestGet,
    getoptions,
    shengCode
}